package server.services;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import server.services.channels.IChannel;

/**
 * Services interface proposed by server skeleton to client
 * !!!==> Client call once it, and just use IChannel object
 * */
public interface IServicesServeur extends Remote{
	public IChannel getChannel(String title) throws RemoteException;	
	public List<String> getAllChanelsNames() throws RemoteException;
	public void addChanel(String nameChannel) throws RemoteException;
	public void removeChanel(String nameChannel) throws RemoteException;
	public boolean testPseudo(String pseudo) throws RemoteException;
	public List<String[]> getIpPort()throws RemoteException;
	public void broadcast(String channel, String message) throws RemoteException;
}
